package com.bjqg.bjqg01.bjqg.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.bjqg.bjqg01.bjqg.R;

/**
 * Created by bjqg01 on 2017/12/12.
 */

public class OnLineEntrustActivity2 extends BaseActivity implements View.OnClickListener {

    private ImageView goback;
    private TextView toptitle;
    private ImageView select;
    private LinearLayout li1;
    private LinearLayout li2;
    private LinearLayout li3;
    private LinearLayout li4;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_online_entrus2);
        initView();
    }

    private void initView() {
        goback = (ImageView) findViewById(R.id.back);
        toptitle = (TextView) findViewById(R.id.tv_top_title);
        select = (ImageView) findViewById(R.id.select);
        li1 = (LinearLayout) findViewById(R.id.li1);
        li2 = (LinearLayout) findViewById(R.id.li2);
        li3 = (LinearLayout) findViewById(R.id.li3);
        li4 = (LinearLayout) findViewById(R.id.li4);

        goback.setOnClickListener(this);
        li1.setOnClickListener(this);
        li2.setOnClickListener(this);
        li3.setOnClickListener(this);
        li4.setOnClickListener(this);

        toptitle.setText("网上委托");
        select.setVisibility(View.INVISIBLE);
    }

    @Override
    public void onClick(View v) {

        switch (v.getId()){
            case R.id.back:
                finish();
                break;
            case R.id.li1:
                //工程信息录入
                Intent intent1 = new Intent(this,ProjectInformationActivity.class);
                startActivity(intent1);
                break;
            case R.id.li2:
                //工程信息管理
                Intent intent2 = new Intent(this,ProjectInformationManageActivity.class);
                startActivity(intent2);
                break;
            case R.id.li3:
                //预委托编号录入
                Intent intent3 = new Intent(this,PreEntrustNumberEntryActivity.class);
                startActivity(intent3);
                break;
            case R.id.li4:
                //预委托编号管理
                Intent intent4 = new Intent(this,PreEntrustNumberManageActivity.class);
                startActivity(intent4);
                break;

        }
    }
}
